song2short = {
        '当你老了':'dnll',
        '盛夏的果实':'sx_d_gs',
        '如果没有你':'rgmyn',
        '我要找到你': 'wyzdn',
        '小美满':'xmm',
        '这世界那么多人':'zjs_nm_dr',
    }
print('/'.join(song2short.keys()))

def get_song_resources(song_id):
    #autodl-tmp/huazhou_vocal/vocal_纸短情长.mp3.reformatted.wav_10.wav
    if song_id in ['纸短情长','最美不过是朝晖']:
        instrc_file = f'/root/autodl-tmp/huazhou_vocal/vocal_{song_id}.mp3.reformatted.wav_10.wav'
        vocal_file = f'/root/autodl-tmp/huazhou_instru/instrument_{song_id}.mp3.reformatted.wav_10.wav'
        return instrc_file,vocal_file
    song_id =song2short.get(song_id,song_id)
    instrc_file ='/root/autodl-tmp/Retrieval-based-Voice-Conversion-WebUI/infer_inst/vocal_{}.mp3.reformatted.wav_10.wav'
    vocal_file ='/root/autodl-tmp/Retrieval-based-Voice-Conversion-WebUI/infer_vocal/instrument_{}.mp3.reformatted.wav_10.wav'
    #instrc_file, vocal_file = '',''
    return instrc_file.format(song_id),vocal_file.format(song_id)